package com.cz.kafka.consumer;


import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ConsumerListener {

    @KafkaListener(topics = "cz", id = "cz")
    public void listenUser(String message) {
        log.info("receive message: " + message);

    }
}
